package com.sanbi.common.config;

import com.github.houbb.property.support.converter.IFieldValueContext;
import com.github.houbb.property.support.converter.IPropertyValueContext;
import com.github.houbb.property.support.converter.IValueConverter;

public class ShortValueConverter implements IValueConverter {
    @Override
    public Object fieldValue(String s, IFieldValueContext iFieldValueContext) {
        return Short.parseShort(s);
    }

    @Override
    public String propertyValue(Object o, IPropertyValueContext iPropertyValueContext) {
        return String.valueOf(o);
    }
}
